
const Router = require("koa-router");
const userRouter = new Router({prefix: '/users'}) // koa-router
const {
  create,
  avatarInfo
} = require("../controllers/users.controller");
const {
  verifyUser,
  handlePassword,
}=require("../middlewares/users.middleware")
userRouter.post('/',verifyUser,handlePassword,create ); // create user
userRouter.get("/:userId/avatar", avatarInfo); // get avatar
module.exports = userRouter;